<template>
  <div>
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="项目进度" name="0">
        <top-number-box :currentTab="activeName"/>
        <project-schedule-box />
      </el-tab-pane>
      <el-tab-pane label="项目成本" name="1">
        <top-number-box :currentTab="activeName"/>
        <project-cost-box :tabNum="activeName"/>
      </el-tab-pane>
      <el-tab-pane label="项目合同" name="2">
        <top-number-box :currentTab="activeName"/>
        <project-contract-box :tabNum="activeName"/>
      </el-tab-pane>
      <el-tab-pane label="项目风险" name="3">
        <top-number-box :currentTab="activeName"/>
        <project-risk-box :tabNum="activeName" />
      </el-tab-pane>
      <el-tab-pane label="项目质量" name="4">
        <top-number-box :currentTab="activeName"/>
        <project-quality-box :tabNum="activeName" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import topNumberBox from './components/topNumberBox'
import ProjectScheduleBox from './components/projectScheduleBox'
import ProjectCostBox from './components/projectCostBox'
import ProjectContractBox from './components/projectContractBox'
import ProjectRiskBox from './components/projectRiskBox'
import ProjectQualityBox from './components/projectQualityBox'
export default {
  name: 'Manager',
  components: {topNumberBox, ProjectScheduleBox, ProjectCostBox, ProjectContractBox, ProjectRiskBox, ProjectQualityBox},
  data() {
    return {
      activeName: '0',
    }
  },
  mounted() {
    
  },
  methods: {
    handleClick() {
      
    }
  }
}
</script>

<style lang="scss" scoped>
.el-tabs {
  margin: 10px;
}
</style>